package reduce.fz.com.reduce.bean;

import android.text.TextUtils;


import java.io.Serializable;
import java.util.Random;

import reduce.fz.com.reduce.base.FileCache;
import reduce.fz.com.reduce.util.base.ReduceApplication;

public class ImageEditor implements Serializable {
    private static final long serialVersionUID = 1L;

    //原始地址
    public String originalPath;
    //新生成的图片路径
    public String newPath;

    /**
     * 生成一个合成图路径
     */
    public void createNewPath(){
        if(TextUtils.isEmpty(newPath)){
            String t = System.currentTimeMillis()+ "_" + new Random().nextInt(1000)+ "_sticker_" + ".jpg";
            newPath = FileCache.getCropDir(ReduceApplication.getInstance()) + t;
        }
    }

    public void clearStamp(){
    }
}
